#include "gameoverdialog.h"
#include "ui_gameoverdialog.h"

gameOverDialog::gameOverDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::gameOverDialog)
{
    ui->setupUi(this);
}

gameOverDialog::~gameOverDialog()
{
    delete ui;
}

void gameOverDialog::on_restart_clicked()
{
    this->close();
    Widget *newGame = new Widget;
    newGame->show();
}


void gameOverDialog::on_return_2_clicked()
{
    this->close();
    startMenu *toHome = new startMenu;
    toHome->show();
}

